Clover coverage report - Enterprise Web Services - 1.0
Coverage timestamp: Mon May 30 2005 17:10:32 CEST
file stats: LOC: 57   Methods: 1
NCLOC: 36   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
J2eeUtils.java 22.7% 33.3% 100% 30%
coverage coverage
 1   
 /*
 2   
  * Copyright 2001-2004 The Apache Software Foundation.
 3   
  * 
 4   
  * Licensed under the Apache License, Version 2.0 (the "License");
 5   
  * you may not use this file except in compliance with the License.
 6   
  * You may obtain a copy of the License at
 7   
  * 
 8   
  *      http://www.apache.org/licenses/LICENSE-2.0
 9   
  * 
 10   
  * Unless required by applicable law or agreed to in writing, software
 11   
  * distributed under the License is distributed on an "AS IS" BASIS,
 12   
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13   
  * See the License for the specific language governing permissions and
 14   
  * limitations under the License.
 15   
  */
 16   
 package org.apache.geronimo.ews.jaxrpcmapping;
 17   
 
 18   
 /**
 19   
  * @author Ias (iasandcb@tmax.co.kr)
 20   
  */
 21   
 public class J2eeUtils {
 22  87
     public static String jni2javaName(String returnType) {
 23  87
         if (returnType == null)
 24  0
             return null;
 25  87
         if (!returnType.startsWith("[")) {
 26  81
             return returnType;
 27   
         } else {
 28  6
             returnType = returnType.substring(1);
 29   
         }
 30  6
         String end = "[]";
 31  6
         while (returnType.startsWith("[")) {
 32  0
             end = end + "[]";
 33  0
             returnType = returnType.substring(1);
 34   
         }
 35  6
         if (returnType.startsWith("B")) {
 36  6
             returnType = "byte";
 37  0
         } else if (returnType.startsWith("I")) {
 38  0
             returnType = "int";
 39  0
         } else if (returnType.startsWith("D")) {
 40  0
             returnType = "double";
 41  0
         } else if (returnType.startsWith("J")) {
 42  0
             returnType = "long";
 43  0
         } else if (returnType.startsWith("Z")) {
 44  0
             returnType = "boolean";
 45  0
         } else if (returnType.startsWith("F")) {
 46  0
             returnType = "float";
 47  0
         } else if (returnType.startsWith("S")) {
 48  0
             returnType = "short";
 49  0
         } else if (returnType.startsWith("L")) {
 50  0
             int index = returnType.indexOf(";@");
 51  0
             returnType.substring(1, index);
 52   
         }
 53  6
         return returnType + end;
 54   
     }
 55   
 
 56   
 }
 57